package com.tronsis.distribution.bean;

import java.io.Serializable;
import java.util.List;

public class DeliveryDetailBean implements Serializable {
    /**
     * code : string
     * createdOn : string
     * done : true
     * expressCode : string
     * expressFid : string
     * expressInc : string
     * id : string
     * items : [{"amount":0,"contribute":0,"coverFid":"string","freight":0,"id":"string","name":"string","productId":"string"}]
     * points : 0
     * realFreight : 0
     * receiverAddr : {"detail":"string","name":"string","phone":"string","region":"string"}
     * state : DELIVERY(待发货)
     * stateOn : string
     * totalFreight : 0
     * totalItem : 0
     */

    private String code;
    private String createdOn;
    private boolean done;
    private String expressCode;
    private String expressFid;
    private String expressInc;
    private String id;
    private Integer points;
    private double realFreight;
    private ReceiverAddrBean receiverAddr;
    private String state;
    private String stateOn;
    private double totalFreight;
    private int totalItem;
    private List<ItemsBean> items;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(String createdOn) {
        this.createdOn = createdOn;
    }

    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }

    public String getExpressCode() {
        return expressCode;
    }

    public void setExpressCode(String expressCode) {
        this.expressCode = expressCode;
    }

    public String getExpressFid() {
        return expressFid;
    }

    public void setExpressFid(String expressFid) {
        this.expressFid = expressFid;
    }

    public String getExpressInc() {
        return expressInc;
    }

    public void setExpressInc(String expressInc) {
        this.expressInc = expressInc;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getPoints() {
        return points;
    }

    public void setPoints(Integer points) {
        this.points = points;
    }

    public double getRealFreight() {
        return realFreight;
    }

    public void setRealFreight(double realFreight) {
        this.realFreight = realFreight;
    }

    public ReceiverAddrBean getReceiverAddr() {
        return receiverAddr;
    }

    public void setReceiverAddr(ReceiverAddrBean receiverAddr) {
        this.receiverAddr = receiverAddr;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStateOn() {
        return stateOn;
    }

    public void setStateOn(String stateOn) {
        this.stateOn = stateOn;
    }

    public double getTotalFreight() {
        return totalFreight;
    }

    public void setTotalFreight(double totalFreight) {
        this.totalFreight = totalFreight;
    }

    public int getTotalItem() {
        return totalItem;
    }

    public void setTotalItem(int totalItem) {
        this.totalItem = totalItem;
    }

    public List<ItemsBean> getItems() {
        return items;
    }

    public void setItems(List<ItemsBean> items) {
        this.items = items;
    }

    public static class ReceiverAddrBean {
        /**
         * detail : string
         * name : string
         * phone : string
         * region : string
         */

        private String detail;
        private String name;
        private String phone;
        private String region;

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getRegion() {
            return region;
        }

        public void setRegion(String region) {
            this.region = region;
        }
    }

    public static class ItemsBean {
        /**
         * amount : 0
         * contribute : 0
         * coverFid : string
         * freight : 0
         * id : string
         * name : string
         * productId : string
         */

        private int amount;
        private int contribute;
        private String coverFid;
        private double freight;
        private String id;
        private String name;
        private String productId;
        private String remarks;

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public int getAmount() {
            return amount;
        }

        public void setAmount(int amount) {
            this.amount = amount;
        }

        public int getContribute() {
            return contribute;
        }

        public void setContribute(int contribute) {
            this.contribute = contribute;
        }

        public String getCoverFid() {
            return coverFid;
        }

        public void setCoverFid(String coverFid) {
            this.coverFid = coverFid;
        }

        public double getFreight() {
            return freight;
        }

        public void setFreight(double freight) {
            this.freight = freight;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getProductId() {
            return productId;
        }

        public void setProductId(String productId) {
            this.productId = productId;
        }
    }
}
